<!DOCTYPE html>
<html>
<head>
	<title>编辑-恢复内容</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="yes" name="apple-touch-fullscreen">
	<meta content="telephone=no,email=no" name="format-detection">
	<link rel="stylesheet" href="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/css/normalize.css" type="text/css">
	<link rel="stylesheet" href="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/css/list.css" type="text/css">
	<link rel="stylesheet" href="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/css/edit_regain.css" type="text/css">
	<script type="text/javascript" src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/js/qrjs2.min.js"></script>
	<script type="text/javascript" src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/js/scroll.js"></script>
	<script type="text/javascript">
		!function(a,b){function c(){var b=f.getBoundingClientRect().width;b/i>540&&(b=540*i);var c=b/10;f.style.fontSize=c+"px",k.rem=a.rem=c}var d,e=a.document,f=e.documentElement,g=e.querySelector('meta[name="viewport"]'),h=e.querySelector('meta[name="flexible"]'),i=0,j=0,k=b.flexible||(b.flexible={});if(g){console.warn("将根据已有的meta标签来设置缩放比例");var l=g.getAttribute("content").match(/initial\-scale=([\d\.]+)/);l&&(j=parseFloat(l[1]),i=parseInt(1/j))}else if(h){var m=h.getAttribute("content");if(m){var n=m.match(/initial\-dpr=([\d\.]+)/),o=m.match(/maximum\-dpr=([\d\.]+)/);n&&(i=parseFloat(n[1]),j=parseFloat((1/i).toFixed(2))),o&&(i=parseFloat(o[1]),j=parseFloat((1/i).toFixed(2)))}}if(!i&&!j){var p=(a.navigator.appVersion.match(/android/gi),a.navigator.appVersion.match(/iphone/gi)),q=a.devicePixelRatio;i=p?q>=3&&(!i||i>=3)?3:q>=2&&(!i||i>=2)?2:1:1,j=1/i}if(f.setAttribute("data-dpr",i),!g)if(g=e.createElement("meta"),g.setAttribute("name","viewport"),g.setAttribute("content","initial-scale="+j+", maximum-scale="+j+", minimum-scale="+j+", user-scalable=no"),f.firstElementChild)f.firstElementChild.appendChild(g);else{var r=e.createElement("div");r.appendChild(g),e.write(r.innerHTML)}a.addEventListener("resize",function(){clearTimeout(d),d=setTimeout(c,300)},!1),a.addEventListener("pageshow",function(a){a.persisted&&(clearTimeout(d),d=setTimeout(c,300))},!1),"complete"===e.readyState?e.body.style.fontSize=12*i+"px":e.addEventListener("DOMContentLoaded",function(){e.body.style.fontSize=12*i+"px"},!1),c(),k.dpr=a.dpr=i,k.refreshRem=c,k.rem2px=function(a){var b=parseFloat(a)*this.rem;return"string"==typeof a&&a.match(/rem$/)&&(b+="px"),b},k.px2rem=function(a){var b=parseFloat(a)/this.rem;return"string"==typeof a&&a.match(/px$/)&&(b+="rem"),b}}(window,window.lib||(window.lib={}));</script>


	<style type="text/css">

		.regain_text_img img{
			padding-left:.3rem;
		}
		.regain_text_img img:nth-of-type(1){
			padding-left:0;
		}
		.regain_text_img img:nth-of-type(4),
		.regain_text_img img:nth-of-type(7)
		{
			padding-left:0;
		}
		.regain_text_img{
			padding-top:0;
		}
		.regain_text_img img{
			margin-top:0.26rem;
		}
		.alltexts{
			color:#000;

		}

	</style>

</head>
<body>
<div class="container">
	<div class="list_time">
		<div class="list_time_center">
			<div class="list_top">
				<div class="list_text">
					<div class="list_text_top clear">
						<div class="text_list"><h5>目录</h5></div>
						<div class="text_img"><img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_close_icon.png" style="width:1.6rem;height:1.6rem;"></div>
					</div>
					<div class="feng" onclick="wbbook(this)">封面
					</div>
				</div>
				<div class="time">
					<div class="time_num">
						<foreach name="err" item="vo" key="ko">
							<ul class="clear">
								<h4 class="year">{$vo.createTime}年</h4>

								<if condition="in_array($vo['createTime'].'-01',$grr)"><li class="month">
									<input value="b{$vo.createTime}-01" style="display:none">1月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-01" style="display:none">1月</li></if>

								<if condition="in_array($vo['createTime'].'-02',$grr)"><li class="month">
									<input value="b{$vo.createTime}-02" style="display:none">2月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-02" style="display:none">2月</li></if>

								<if condition="in_array($vo['createTime'].'-03',$grr)"><li class="month">
									<input value="b{$vo.createTime}-03" style="display:none">3月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-03" style="display:none">3月</li></if>

								<if condition="in_array($vo['createTime'].'-04',$grr)"><li class="month">
									<input value="b{$vo.createTime}-04" style="display:none">4月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-04" style="display:none">4月</li></if>

								<if condition="in_array($vo['createTime'].'-05',$grr)"><li class="month">
									<input value="b{$vo.createTime}-05" style="display:none">5月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-05" style="display:none">5月</li></if>

								<if condition="in_array($vo['createTime'].'-06',$grr)"><li class="month">
									<input value="b{$vo.createTime}-06" style="display:none">6月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-06" style="display:none">6月</li></if>

								<if condition="in_array($vo['createTime'].'-07',$grr)"><li class="month">
									<input value="b{$vo.createTime}-07" style="display:none">7月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-07" style="display:none">7月</li></if>

								<if condition="in_array($vo['createTime'].'-08',$grr)"><li class="month">
									<input value="b{$vo.createTime}-08" style="display:none">8月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-08" style="display:none">8月</li></if>

								<if condition="in_array($vo['createTime'].'-09',$grr)"><li class="month">
									<input value="b{$vo.createTime}-09" style="display:none">9月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-09" style="display:none">9月</li></if>

								<!--<input value="b{$vo.creinputteTime}-09">9月</input></li>-->
								<if condition="in_array($vo['createTime'].'-10',$grr)"><li class="month">
									<input value="b{$vo.createTime}-10" style="display:none">10月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-10" style="display:none">10月</li></if>

								<if condition="in_array($vo['createTime'].'-11',$grr)"><li class="month">
									<input value="b{$vo.createTime}-11" style="display:none">11月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-11" style="display:none">11月</li></if>

								<if condition="in_array($vo['createTime'].'-12',$grr)"><li class="month">
									<input value="b{$vo.createTime}-12" style="display:none">12月</li><else/><li class="month nonemonth_color"><input value="b{$vo.createTime}-12" style="display:none">12月</li></if>
							</ul>
						</foreach>
					</div>
				</div>
			</div>
			<div class="list_bot">
			</div>
		</div>
	</div>
	<div class="regain_yes_top" id="bb">

		<foreach name="frr" item="v" key="k">
			<div class="regain_main">
				<div class="regain_header clear">
					<div class="regain_header_left">
						<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_restore_content_timeline_calendar_icon_nor.png" style="width:100%;height:100%;">
					</div>
					<div class="regain_header_center">{:current(explode("-",$v['createTime']))}年{:end(explode("-",$v['createTime']))}月</div>
					<div class="regain_header_right" onclick="ChooseMonth('{$v.createTime}','{$wbMainer}','{$v.count}')">恢复整个月</div>
				</div>
				<foreach name="crr" item="vo" key="ko" >
					<if condition="$v['createTime'] eq $vo['yearMonth']">
						<div class="regain_yes_main">

							<div class="regain_radius">
								<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_restore_content_timeline_round_icon.png" style="width:100%;height:100%;">
							</div>
							<div class="regain_main_center">

								<div class="regain_year one">
									<foreach name="frr" item="vb" key="kb" >
										<if condition="date('Y-m',$vo['createTime']) eq $vb['createTime']"><div class="b{:$vb['createTime']}"></div><else/></if></foreach>
									<strong style="font-family: ae_Rasheeq-Bold;font-size: 0.746667rem;color: #282828;">{:date("d",$vo['createTime'])}</strong>
									<i style="font-style:normal;font-family: PingFangSC-Light;font-size: 0.373333rem;color: #282828;padding-left:0.186667rem;">{:date("m",$vo['createTime'])}月</i>
								</div>
								<div class="regain_text">

									<if condition="$vo['content'] != null">	<div class="regain_null" contenteditable="true">{$vo['content'][0]}</div><else/></if>

									<div class="regain_text_img">
										<foreach name="vo.images" item="vs">
											<if condition="strpos($vs['0'],'load') eq false">
												<img src="{$vs['0']}" style="width:2.0rem;height:2.0rem;">
												<else/><img src="http://www.youyiku-yishu.cn/{$vs[0]}" style="width:2.0rem;height:2.0rem;">
											</if>
										</foreach>
										<if condition="$vo.vedio neq null">
											<input type="hidden" class="videocount" value="{$ko}">
											<div class='img_float vedio' class="videobox{$ko}">
												<div class="erWeiMa" data-url="{$vo['vedio'][0]}" style="width:2.0rem;height:2.0rem;"></div>
											</div>
										</if>
									</div>


								</div>

								<div class="return" onclick="Choose('{$vo.createTime}','{$wbMainer}')">
									<i style="font-style:normal;display:inline-block;float:right;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;">恢复</i><img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_restore_content_restore_icon.png" style="width:0.586667rem;height:0.586667rem;float:right;"></div>
							</div>

						</div>
					</if>

				</foreach>
			</div>
		</foreach>
		<div class="regain_yes_bot">
			<div class="regain_bottom">
				<div class="regain_yes_bag">
				</div>
				<div class="regain_yes_left">
					<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/regain_back.png" style="width:100%;height:100%;">
				</div>
				<div class="regain_yes_center">
					<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/wechat_%20book_edit_catalog_icon_nav_nor.png" style="width:1.013333rem;height:1.013333rem;margin:-0.106667rem auto;"><br><a style="line-height:0.746667rem;font-family:PingFangSC-Semibold;font-size: 10px;color: #5BC7B8;">目录</a>
				</div>
				<div class="regain_yes_right" id="sure">
					<!--<a style="width:100%;height:100%;display:block;" href="#data" data="0" id="sure" target="_self">-->
					<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/regain_yes.png" style="width:100%;height:100%;">
					<!--</a>-->
				</div>
			</div>
		</div>

	</div>
</div>

</body>

<script type="text/javascript" src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/js/list.js"></script>
<script>
	function erweima(url,obj){

		createErweima(url,obj);
		//需要qrjs2.min.js
		function createErweima(url,obj){
			//console.log(url,obj);
			var container1 = $(obj);
			var svgElement = document.createElement("div"),

					u = url,
					s = QRCode.generateSVG(u, {
						ecclevel: "M",
						fillcolor: "#FFFFFF",
						textcolor: "#373737",
						//						margin: 4,
						//						modulesize: 4
					});
			svgElement.appendChild(s);
			container1.append(svgElement);
		}
	}
	$(".erWeiMa").each(function(){
		var url = $(this).data("url");
		erweima(url,this);
	})
	$(function(){
		var btns = new Array();
		var pattern2 = /\[[\u4e00-\u9fa5]+\]/g;
		$('.regain_null').each(function(key,value){

			btns[key] = $(this).html();
			btns[key]=btns[key].replace(pattern2,"<img src='http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/face/$&.png' style='wdith:15px;height:15px'>");

			$(this).html(btns[key]);
			//或者也可以这么写：

			// btns[key] = $(value).val();
		});

		var data=$('#sure').attr('data');

		$('.month').click(

				function(){
					var a=$(this).find('input').val();
					data=a;
					//真正移动的方法
					$("body").removeClass('gfixed');

					$('html, body').animate({
						scrollTop: $('.'+data).offset().top
					}, 500);
//					alert(data);
				});

//		$('.month').click(function(){
//			var a=$(this).find('input').val();
//			data=a;
//			console.log(data);
//			if( $('.b'+data).length !== 0 ){
//				//加载过的    真正移动的方法
//				$("body").removeClass('gfixed');
//
//				$('html, body').animate({
//					scrollTop: $('.b'+data).offset().top
//				}, 500);
//			}else{
//				$(".regain_main").remove();
//				//如果没有加载过
//				$.post(Think.U('WebApp/WbBooks/printYMcontent'),{ym:data},function(json){
//					console.log(json);
//					cont = true;
//					var content = json.content;
//					var y = json.ym.slice(0,4);
//					var m = json.ym.slice(5,7);
//					//console.log(y,m);
//					var str = "";
//					var str1 = "";
//					str += '<div class="regain_main">';
//					str += '<div class="regain_header clear">';
//					str += '<div class="regain_header_left">';
//					str += '<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_restore_content_timeline_calendar_icon_nor.png" style="width:100%;height:100%;">';
//					str += '</div>';
//					str += '<div class="regain_header_center" id="b'+json.ym+'">'+json.ym.slice(0,4)+'年</div>';
//					str += '<div class="regain_header_right" onclick="ChooseMonth('+y.concat(".",m)+','+content.length+')">删除整个月</div>';
//					str += '</div>';
//					str += '<input type="hidden" class="nextTime" value="'+json.next+'">';
//					$(".regain_yes_top").append(str);
//
//					for(var i=0;i<content.length;i++){
//						str1 += '<div class="regain_yes_main">'+
//								'<div class="regain_radius">'+
//								'<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_restore_content_timeline_round_icon.png" style="width:100%;height:100%;">'+
//								'</div>'+
//								'<div class="regain_main_center">'+
//								'<div class="regain_year one">'+
//								'<div class="b'+json.ym+'"></div>'+
//								'<strong style="font-family: ae_Rasheeq-Bold;font-size: 0.746667rem;color: #282828;">'+content[i].d+'</strong>'+
//								'<i style="font-style:normal;font-family: PingFangSC-Light;font-size: 0.373333rem;color: #282828;padding-left:0.186667rem;">'+content[i].m+'月</i>'+
//								'</div>'+
//								'<div class="regain_text">'+
//								'<div class="regain_container">'+
//								'<div class="regain_zhao">';
//						if(content[i].text == null ||content[i].text == 'null'){
//							str1 +=	'';
//						}else{
//							str1 +=	'<textarea disabled="disabled" class="regain_null img_none ll">'+content[i].text+'</textarea>';
//						}
//						str1 +=				'<input type="hidden" name="wbbook" value="'+content[i].id+'">'+
//								'</div>'+
//								'</div>'+
//								'<div class="regain_text_img imgSort_'+i+'">'+
//								'<input class="getid" value="'+content[i].id+'" style="display:none">'+
//								imginfo(content[i].imgs,content[i].date,i)+
//								isHavevedio(content[i],i)+
//								'</div>'+
//								'</div>'+
//								'<div class="complains-container">'+
//								'<section class="am-panel am-panel-default">'+
//								'<div class="am-panel-bd" style="padding-left:0;padding-right:0;">'+
//								'<div class="return">'+
//								'<div class="return_right" onclick="Choose('+content[i].data+','+content[i].wbMainer+',this)">'+
//								'<i class="panduan" id="tips_'+i+'" style="font-style:normal;display:inline-block;float:right;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;">删除</i><img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_modify_the_content_delete_icon_nor.png" style="width:0.586667rem;height:0.586667rem;float:right;">'+
//								'</div>'+
//								'<div class="return_center">'+
//								'<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_modify_the_content_edit_the_text_icon_sel.png" style="width:0.586667rem;height:0.586667rem;float:left;">'+
//								'<i style="font-style:normal;display:inline-block;float:left;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;">编辑</i>'+
//								'</div>'+
//
//								'<div class="return_left " class="newWxUpload" data-id="'+i+'">'+
//								'<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_modify_the_content_add_to_photo_icon_nor.png" style="width:0.586667rem;height:0.586667rem;float:left;">'+
//								'<i style="font-style:normal;display:inline-block;float:left;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;">添加图片</i>'+
//								'</div>'+
//								'</div>'+
//								'<form class="am-form" style="diaplay:none">'+
//								'<fieldset>'+
//								'<div class="am-form-group am-form-file">'+
//								'<div style="clear:both;"></div>'+
//								'</div>'+
//								'</fieldset>'+
//								'</form>'+
//								'</div>'+
//								'</section>'+
//								'</div>'+
//
//								'</div>'+
//								'</div>'
//					}
//					$(".regain_main:last").append(str1);
//					$('textarea').each(function () {
//						this.setAttribute('style', 'height:' + (this.scrollHeight) + 'px;overflow-y:hidden;');
//					}).on('input', function () {
//						this.style.height = 'auto';
//						this.style.height = (this.scrollHeight) + 'px';
//					});
//
//					//给后面加载的内容添加图片功能
//					$(".return_left").on("click",function(){
//						chooseImg(this);
//					})
//					textInputOrBlur();
//				})
//			}
//		});

		$('#sure').click(function(){
			location.href = WST.U("WebApp/WbBooks/wbbook");
		})
		var cont = true;
//		$(window).scroll(function(){
//			var scrollTop = $(this).scrollTop();
//			var scrollHeight = $(document).height();
//			var windowHeight = $(this).height();
//			var oneHeight = $(".regain_yes_main").eq(0).innerHeight()*2;
//			if(cont && scrollTop + windowHeight + oneHeight >= scrollHeight){
//				cont = false;
//				var nextTime = $(".nextTime:last").val();
//				if(nextTime==="null"){
//					$('<div>').appendTo('body').addClass('alert alert-success').html('已经到最底部了！').show().delay(1500).fadeOut();
//					if($(".regain_main:last").find(".regain_header_center").attr("id") === "b"){
//						//console.log("该删掉!");
//						$(".regain_main:last").remove();
//					}
//					if($(".regain_main:first").find(".regain_header_center").attr("id") === "b"){
//						//console.log("该删掉!");
//						$(".regain_main:first").remove();
//					}
//				}else{
//					$.post(Think.U('WebApp/WbBooks/printYMcontent'),{ym:nextTime},function(data){
//						cont = true;
//						var content = data.content;
//						var y = data.ym.slice(0,4);
//						var m = data.ym.slice(5,7);
//						console.log(y,m);
//						var str = "";
//						var str1 = "";
//						str += '<div class="regain_main">';
//						str += '<div class="regain_header clear">';
//						str += '<div class="regain_header_left">';
//						str += '<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_restore_content_timeline_calendar_icon_nor.png" style="width:100%;height:100%;">';
//						str += '</div>';
//						str += '<div class="regain_header_center" id="b'+data.ym+'">'+data.ym.slice(0,4)+'年</div>';
//						str += '<div class="regain_header_right" onclick="ChooseMonth('+y.concat(".",m)+','+content.length+')">删除整个月</div>';
//						str += '</div>';
//						str += '<input type="hidden" class="nextTime" value="'+data.next+'">';
//						$(".regain_yes_top").append(str);
//
//						for(var i=0;i<content.length;i++){
//
//							str1 += '<div class="regain_yes_main">'+
//									'<div class="regain_radius">'+
//									'<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_restore_content_timeline_round_icon.png" style="width:100%;height:100%;">'+
//									'</div>'+
//									'<div class="regain_main_center">'+
//									'<div class="regain_year one">'+
//									'<div class="b'+data.ym+'"></div>'+
//									'<strong style="font-family: ae_Rasheeq-Bold;font-size: 0.746667rem;color: #282828;">'+content[i].d+'</strong>'+
//									'<i style="font-style:normal;font-family: PingFangSC-Light;font-size: 0.373333rem;color: #282828;padding-left:0.186667rem;">'+content[i].m+'月</i>'+
//									'</div>'+
//									'<div class="regain_text">'+
//									'<div class="regain_container">'+
//									'<div class="regain_zhao">';
//							if(content[i].text == null ||content[i].text == 'null'){
//								str1 +=	'';
//							}else{
//								str1 +=	'<textarea disabled="disabled" class="regain_null img_none ll">'+content[i].text+'</textarea>';
//							}
//							str1 +=				'<input type="hidden" name="wbbook" value="'+content[i].id+'">'+
//									'</div>'+
//									'</div>'+
//									'<div class="regain_text_img imgSort_'+i+'">'+
//									'<input class="getid" value="'+content[i].id+'" style="display:none">'+
//									imginfo(content[i].imgs,content[i].date,i)+
//									isHavevedio(content[i],i)+
//									'</div>'+
//									'</div>'+
//									'<div class="complains-container">'+
//									'<section class="am-panel am-panel-default">'+
//									'<div class="am-panel-bd" style="padding-left:0;padding-right:0;">'+
//									'<div class="return">'+
//									'<div class="return_right" onclick="Choose('+content[i].date+','+content[i].wbMainer+',this)">'+
//									'<i class="panduan" id="tips_'+i+'" style="font-style:normal;display:inline-block;float:right;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;">删除</i><img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_modify_the_content_delete_icon_nor.png" style="width:0.586667rem;height:0.586667rem;float:right;">'+
//									'</div>'+
//									'<div class="return_center">'+
//									'<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_modify_the_content_edit_the_text_icon_sel.png" style="width:0.586667rem;height:0.586667rem;float:left;">'+
//									'<i style="font-style:normal;display:inline-block;float:left;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;">编辑</i>'+
//									'</div>'+
//
//									'<div class="return_left " class="newWxUpload" data-id="'+i+'">'+
//									'<img src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_modify_the_content_add_to_photo_icon_nor.png" style="width:0.586667rem;height:0.586667rem;float:left;">'+
//									'<i style="font-style:normal;display:inline-block;float:left;line-height:0.586667rem;font-size: 0.32rem;color: #29A3DA;">添加图片</i>'+
//									'</div>'+
//									'</div>'+
//									'<form class="am-form" style="diaplay:none">'+
//									'<fieldset>'+
//									'<div class="am-form-group am-form-file">'+
//									'<div style="clear:both;"></div>'+
//									'</div>'+
//									'</fieldset>'+
//									'</form>'+
//									'</div>'+
//									'</section>'+
//									'</div>'+
//
//									'</div>'+
//									'</div>'
//						}
//						$(".regain_main:last").append(str1);
//						$('textarea').each(function () {
//							this.setAttribute('style', 'height:' + (this.scrollHeight) + 'px;overflow-y:hidden;');
//						}).on('input', function () {
//							this.style.height = 'auto';
//							this.style.height = (this.scrollHeight) + 'px';
//						});
//
//						//给后面加载的内容添加图片功能
//						$(".return_left").on("click",function(){
//							chooseImg(this);
//						})
//						textInputOrBlur();
//					})
//				}
//			}
//		});

		//每一条信息带的图片;
//		function imginfo(imgs,date,count){ //图片数组，创建时间，循环到第几次
//			var str_imginfo = "";
//			if(imgs==undefined){
//				return str_imginfo;
//			}else{
//				for(var k=0; k<imgs.length; k++){
//					str_imginfo+='<div class="img_float">'+
//							'<img onclick="deletepic('+k+','+date+',this)" src="/youyiku/Apps/WebApp/View/default/images/edit_modify_the_content_deleted_image.png" style="width:2.0rem;height:2.0rem;position:absolute;z-index:3;">'+
//							'<img src="https://weixinshu.com/images/fetch?url='+imgs[k]+'" style="width:2.0rem;height:2.0rem;" class="imgInfo_'+count+'">'+
//							'</div>'
//				}
//				return str_imginfo;
//			}
//		}

		function isHavevedio(curContent,i){
			var str_vedio = "";
			//console.log(curContent.vedio);
			if(curContent.vedio){
				str_vedio += '<input type="hidden" class="videocount" value="'+i+'">'+
						'<div class="img_float" class="videobox'+i+'">'+
						'<img  onclick="deletevideo('+curContent.id+')" src="http://www.youyiku-yishu.cn/Apps/WebApp/View/default/images/edit_modify_the_content_deleted_image.png" style="width:2.0rem;height:2.0rem;position:absolute;z-index:3;">'+
						'<div class="erWeiMa" data-url="'+curContent.vedio+'" style="width:2.0rem;height:2.0rem;"></div>'+
						'</div>';
				return str_vedio;
			}else{
				return "";
			}
		}

		if($('.regain_null a')){
			$('.regain_null a').addClass('alltext');
			$('.regain_null a').attr('href',"javascript:0");
		}
	})

	function ChooseMonth(time2,wbMainer,count)
	{
//		console.log(time2,wbMainer,count);
//alert({:U('Books/recovermonth')})
		$.ajax({
			type: "get",//数据发送的方式（post 或者 get）
			url: " {:U('WbBooks/recovermonth')}",//要发送的后台地址
			data:{'time2':time2,'wbMainer':wbMainer,'count':count},//要发送的数据（参数）格式为{'val1':"1","val2":"2"}
			dataType: "json",//后台处理后返回的数据格式
			success:function(data){
//				alert(JSON.stringify(data))
				window.location.reload()
			}
		})
	};

	function Choose(time,wbMainer)
	{
//		console.log(time,wbMainer);
		$.ajax({
			type: "get",//数据发送的方式（post 或者 get）
			url: " {:U('WbBooks/recover')}",//要发送的后台地址
			data:{'time':time,'wbMainer':wbMainer},//要发送的数据（参数）格式为{'val1':"1","val2":"2"}
			dataType: "json",//后台处理后返回的数据格式
			success:function(data){
//				alert(JSON.stringify(data))
				window.location.reload()
			}
		})
	};

	$('.regain_yes_left').click(function(){
		window.history.back(-1)
	})

	var WST = ThinkPHP = window.Think = {
		"ROOT"   : "__ROOT__",
		"APP"    : "__APP__",
		"PUBLIC" : "__PUBLIC__",
		"DEEP"   : "{:C('URL_PATHINFO_DEPR')}",
		"MODEL"  : ["{:C('URL_MODEL')}", "{:C('URL_CASE_INSENSITIVE')}", "{:C('URL_HTML_SUFFIX')}"],
		"VAR"    : ["{:C('VAR_MODULE')}", "{:C('VAR_CONTROLLER')}", "{:C('VAR_ACTION')}"],
		"DOMAIN" : "{:WSTDomain()}",
		"CITY_ID" : "{$currArea['areaId']}",
		"CITY_NAME" : "{$currArea['areaName']}",
		"DEFAULT_IMG": "{:WSTDomain()}/{$CONF['goodsImg']}",
		"MALL_NAME" : "{$CONF['mallName']}",
		"SMS_VERFY"  : "{$CONF['smsVerfy']}",
		"PHONE_VERFY"  : "{$CONF['phoneVerfy']}",
		"IS_LOGIN" :"{$WST_IS_LOGIN}",
		"WST_STYLE" :"{$WST_STYLE}"
	}
	function wbbook(params){
		location.href = WST.U("WebApp/WbBooks/wbbook");
	}
</script>

<script src="http://www.youyiku-yishu.cn/Public/js/think.js"></script>

</html>